﻿using AIVision.Model.EntityModels;
using AIVision.Repository.Entitys;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;

namespace AIVision.Repository
{
    public class AutoMapperProfile: Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<PLCConfig, PLCConfigDto>();
            CreateMap<PLCConfigDto, PLCConfig>();

            CreateMap<CheckTemplate, CheckTemplateDto>();
            CreateMap<CheckTemplateDto, CheckTemplate>();

            CreateMap<CheckStation, CheckStationDto>();
            CreateMap<CheckStationDto, CheckStation>();

            CreateMap<DefectItem, DefectItemDto>();
            CreateMap<DefectItemDto, DefectItem>();

            CreateMap<Camera, CameraDto>();
            CreateMap<CameraDto, Camera>();

            CreateMap<InpsectionRecord, InpsectionRecordDto>();
            CreateMap<InpsectionRecordDto, InpsectionRecord>();
        }
       
    }
}
